class RemoveAreaIdAndAddAreaNameInAdsAndEvents < ActiveRecord::Migration
  def self.up
    remove_column(:advertisments, :area_id)
    add_column(:advertisments, :area_name, :string)
    remove_column(:events, :area_id)
    add_column(:events, :area_name, :string)
  end

  def self.down
    remove_column(:advertisments, :area_name)
    add_column(:advertisments, :area_id, :integer)
    remove_column(:events, :area_name)
    add_column(:events, :area_id, :integer)
  end
end
